import {
    http4
} from "@/service/axios";

// 高位视频/视频桩列表
export function getVideoList(data) {
    return http4.post({
        url: "/road/camera/list/page",
        data,
    });
}

// 新增高位视频/视频桩
export function getAddVideo(data) {
    return http4.post({
        url: "/road/camera/add",
        data,
    });
}

// 编辑高位视频/视频桩
export function getEditVideo(data) {
    return http4.post({
        url: "/road/camera/edit",
        data,
    });
}

// 删除高位视频/视频桩
export function getDeleteVideo(data) {
    return http4.post({
        url: `/road/camera/remove/${data}`,
        data,
    });
}

// 视频设备修改状态接口
export function getStatusVideo({
    data,
    status
}) {
    return http4.post({
        url: `/road/camera/batch/edit/${status}`,
        data,
    });
}

// 高位视频下载模版
export function getHighVideoDownload(data) {
    return http4.get({
        url: `/road/camera/high/level/import/template/download`,
        data,
        responseType: "blob",
    });
}

// 高位视频导出
export function getExportVideo(data) {
    return http4.post({
        url: `/road/camera/high/level/export`,
        data,
        responseType: "blob",
    });
}